package com.mcxx.modules.base.service.write;

import com.mcxx.modules.base.dao.write.SalvationChangeLogWriteDao;
import com.mcxx.modules.base.entity.SalvationChangeLogEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional
public class SalvationChangeLogWriteService {

    @Autowired
    private SalvationChangeLogWriteDao salvationChangeLogWriteDao;



    public int insert(SalvationChangeLogEntity salvationChangeLog) {
        return salvationChangeLogWriteDao.insert(salvationChangeLog);
    }


    public int insertBatch(List<SalvationChangeLogEntity> list) {
        return salvationChangeLogWriteDao.insertBatch(list);
    }


    public int insertIgnoreNull(SalvationChangeLogEntity salvationChangeLog) {
        return salvationChangeLogWriteDao.insertIgnoreNull(salvationChangeLog);
    }


    public int update(SalvationChangeLogEntity salvationChangeLog) {
        return salvationChangeLogWriteDao.update(salvationChangeLog);
    }


    public int updateIgnoreNull(SalvationChangeLogEntity salvationChangeLog) {
        return salvationChangeLogWriteDao.updateIgnoreNull(salvationChangeLog);
    }


    public int delete(SalvationChangeLogEntity salvationChangeLog) {
        return salvationChangeLogWriteDao.delete(salvationChangeLog);
    }

}
